import 'package:flutter/material.dart';
import 'package:flutter_app/controller/RightCalssController.dart';
import 'package:flutter_app/page/widget/RightClassWidget.dart';
import 'package:flutter_app/page/widget/SearchWidget.dart';
import 'package:get/get.dart';

class RightContentWidget extends StatefulWidget {
  @override
  _RightContentState createState() => _RightContentState();
}

class _RightContentState extends State<RightContentWidget> {
  ///绑定注入控制器
  final RightClassController _classController = Get.put(RightClassController());

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          SearchWidget(),
          RightClassWidget(title: "分类", classList: _classController.classList),
          RightClassWidget(title: "专家解读", classList: _classController.personList),
        ],
      ),
    );
  }
}
